import {
  post
} from "../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

/**
 * 按需引入
 */

// 1.获取设备分页列表
export const districtPage = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/district/page", p);

// 2.获取设备列表
export const districtList = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/district/list", p);

// 3.修改设备信息
export const districtEdit = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/district/edit", p);

// 4.获取设备对象
export const districtQuery = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/district/query", p);

// 5.获取设备对象
export const initdistrict = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/district/init", p);
